package
{
	import com.xude.UIView;
	
	import potato.events.HttpEvent;
	import potato.res.Res;
	import potato.ui.UIComponent;
	
	public class Main extends UIComponent
	{
		public function Main()
		{
			super();
			init();
		}
		
		private function init():void{
			var r:Res = new Res();
			r.addEventListener(HttpEvent.RES_LOAD_COMPLETE, onResCompletedHandler);
			r.appendCfg('AppConfig.mbf');
		}
		
		private function onResCompletedHandler(e:HttpEvent):void
		{
			addChild(new UIView());
			
		}
	}
}